package com.marketingexpert.controller.personmgnt;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.marketingexpert.service.streammgnt.StreamService;
import com.marketingexpert.service.usermgnt.UserService;

public class CancelAccountAuthController implements Controller {

	private String successView;
	
	private UserService userService;
	
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		String userId = request.getParameter("userId");
		userService.deleteUserById(userId);
		return new ModelAndView(getSuccessView());
	}

	public String getSuccessView() {
		return successView;
	}

	public void setSuccessView(String successView) {
		this.successView = successView;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	

}
